/**
 * @file lv_theme_watch_night.h
 *
 */

#ifndef LV_THEME_WATCH_NIGHT_H
#define LV_THEME_WATCH_NIGHT_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/
#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../lv_conf.h"
#endif

#if USE_LV_THEME_SIMPLE

/*********************
 *      DEFINES
 *********************/
#define COLOR_HUE                               0

#define PHONE_COLOR_BLUE    LV_COLOR_MAKE(0x00,0xb7,0xee)
#define PHONE_COLOR_ORANGE  LV_COLOR_MAKE(0xff,0xa7,0x0d)
#define PHONE_COLOR_GRAY    LV_COLOR_MAKE(0xa0,0xa0,0xa0)
#define PHONE_COLOR_YELLOW  LV_COLOR_MAKE(0xff,0xd8,0x00)

#define LV_COLOR_HEX3(c) LV_COLOR_MAKE((uint8_t) (((c >> 4) & 0xF0) | ((c >> 8) & 0xF)),   \
                                (uint8_t) ((uint32_t)(c & 0xF0)     | ((c & 0xF0) >> 4)), \
                                (uint8_t) ((uint32_t)(c & 0xF)      | ((c & 0xF) << 4)))

/**********************
 *      TYPEDEFS
 **********************/

/**********************
 * GLOBAL PROTOTYPES
 **********************/
/**
 * Initialize the night theme
 * @param hue [0..360] hue value from HSV color space to define the theme's base color
 * @param font pointer to a font (NULL to use the default)
 * @return pointer to the initialized theme
 */
extern lv_theme_t * lv_theme_simple_init(void);

extern lv_theme_t * lv_theme_get_simple(void);

//font
#ifdef USE_FONT_TTF
/* font ttf file */
#ifndef USE_LV_INTERPHONE_DEMO
LV_FONT_DECLARE(lv_font_ttf_20)
LV_FONT_DECLARE(lv_font_ttf_30)
#define LV_FONT_DROIDSANSFALLBACKFULL_20_BIN &lv_font_ttf_20
#define LV_FONT_DROIDSANSFALLBACKFULL_30_COMPRESSED_BIN &lv_font_ttf_30
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL LV_FONT_DROIDSANSFALLBACKFULL_20_BIN
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_LARGE LV_FONT_DROIDSANSFALLBACKFULL_30_COMPRESSED_BIN
#else
LV_FONT_DECLARE(lv_font_ttf_16)
#define LV_FONT_DROIDSANSFALLBACKFULL_16_BIN &lv_font_ttf_16
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL LV_FONT_DROIDSANSFALLBACKFULL_16_BIN
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_LARGE LV_FONT_DROIDSANSFALLBACKFULL_16_BIN
#endif
#elif defined USE_FONT_BIN //bin file
LV_FONT_PTR_DECLARE(lv_font_droidSansFallbackFull_small)
LV_FONT_PTR_DECLARE(lv_font_droidSansFallbackFull_large)
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL lv_font_droidSansFallbackFull_small
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_LARGE lv_font_droidSansFallbackFull_large
#else //c file
#ifndef USE_LV_INTERPHONE_DEMO
LV_FONT_DECLARE(lv_font_droidSansFallbackFull_20)
LV_FONT_DECLARE(lv_font_droidSansFallbackFull_30_compressed)
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL &lv_font_droidSansFallbackFull_20
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_LARGE &lv_font_droidSansFallbackFull_30_compressed
#else
LV_FONT_DECLARE(lv_font_droidSansFallbackFull_16)
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL &lv_font_droidSansFallbackFull_16
#define LV_FONT_PTR_DRIODSANSFALLBACKFULL_LARGE &lv_font_droidSansFallbackFull_16
#endif
#endif

#define LV_THEME_SIMPLE_INIT               lv_theme_simple_init
#define LV_THEME_SIMPLE_COLOR_PRIMARY      (lv_color_hsv_to_rgb(COLOR_HUE, 0, 0))
#define LV_THEME_SIMPLE_COLOR_SECONDARY    (lv_color_hsv_to_rgb(COLOR_HUE, 0, 0))
#define LV_THEME_SIMPLE_FLAG               0
#define LV_THEME_SIMPLE_FONT_SMALL         LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL
#define LV_THEME_SIMPLE_FONT_NORMAL        LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL
#define LV_THEME_SIMPLE_FONT_SUBTITLE      LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL
#define LV_THEME_SIMPLE_FONT_TITLE         LV_FONT_PTR_DRIODSANSFALLBACKFULL_SMALL
#define LV_THEME_SIMPLE_FONT_BIG           LV_FONT_PTR_DRIODSANSFALLBACKFULL_LARGE

extern lv_style_t lv_style_plain;
extern lv_style_t lv_style_pretty;
extern lv_style_t lv_style_transp;
extern lv_style_t lv_style_transp_fit;
extern lv_style_t lv_style_transp_tight;
extern lv_style_t label_prim;
extern lv_style_t label_sec;
extern lv_style_t label_hint;
extern lv_style_t img_light;
extern lv_style_t img_dark;

/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_THEME_SIMPLE*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*LV_THEME_SIMPLE_H*/
